import {
  request
} from './request'


export function loginData(username,password) {
  return request({
    url: '/login',
    method:'post',
    params:{
      username,password
    }
  })
}



// 构造函数

export class Shop {
  constructor(shopInfo) {
    this.logo = shopInfo.shopLogo;
    this.name = shopInfo.name;
    this.fans = shopInfo.cFans;
    this.sells = shopInfo.cSells;
    this.score = shopInfo.score;
    this.goodsCount = shopInfo.cGoods
  }
}

